package com.example.yk_lx.cons;

import androidx.lifecycle.MutableLiveData;

import com.example.yk_lx.baseMVVM.BaseViewModel;
import com.hyphenate.chat.EMConversation;

import java.util.List;

public class ConsViewModel extends BaseViewModel<ConsRepo> {
    @Override
    protected ConsRepo createRepo() {
        return new ConsRepo();
    }

    public MutableLiveData<List<EMConversation>> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void getCons(){
        repo.getCons(success,fail);
    }
}
